package com.bt.table.ppt;

/**
 * Ams_bis_alm_infoId entity. @author MyEclipse Persistence Tools
 */

public class Ams_bis_alm_infoId implements java.io.Serializable {

	// Fields

	private String toolg_id;
	private String alm_id_fk;

	// Constructors

	/** default constructor */
	public Ams_bis_alm_infoId() {
	}

	/** full constructor */
	public Ams_bis_alm_infoId(String toolg_id, String alm_id_fk) {
		this.toolg_id = toolg_id;
		this.alm_id_fk = alm_id_fk;
	}

	// Property accessors

	public String getToolg_id() {
		return this.toolg_id;
	}

	public void setToolg_id(String toolg_id) {
		this.toolg_id = toolg_id;
	}

	public String getAlm_id_fk() {
		return this.alm_id_fk;
	}

	public void setAlm_id_fk(String alm_id_fk) {
		this.alm_id_fk = alm_id_fk;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Ams_bis_alm_infoId))
			return false;
		Ams_bis_alm_infoId castOther = (Ams_bis_alm_infoId) other;

		return ((this.getToolg_id() == castOther.getToolg_id()) || (this
				.getToolg_id() != null && castOther.getToolg_id() != null && this
				.getToolg_id().equals(castOther.getToolg_id())))
				&& ((this.getAlm_id_fk() == castOther.getAlm_id_fk()) || (this
						.getAlm_id_fk() != null
						&& castOther.getAlm_id_fk() != null && this
						.getAlm_id_fk().equals(castOther.getAlm_id_fk())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getToolg_id() == null ? 0 : this.getToolg_id().hashCode());
		result = 37 * result
				+ (getAlm_id_fk() == null ? 0 : this.getAlm_id_fk().hashCode());
		return result;
	}

}